package com.blb.zy_community.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.zy_community.entity.SysOperLog;
import com.blb.zy_community.mapper.SysOperLogMapper;
import com.blb.zy_community.service.ISysOperLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements ISysOperLogService {

    @Autowired
    private SysOperLogMapper sysOperLogMapper;

    @Override
    public Page<SysOperLog> getSysOperLogPage(Page<Object> objectPage, String title, String operName, String requestMethod, String status, String operTimeStart, String operTimeEnd) {
        Page<SysOperLog> sysOperLogPage= sysOperLogMapper.selectSysOperLogPage(objectPage,
                title,operName,requestMethod,status,operTimeStart,operTimeEnd);

        return sysOperLogPage;
    }
}
